/*
 * Copyright (c) 2017 zhangcm. All Rights Reserved.
 */
package com.jnzc.ocr.rest.app.shop.param.app;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author zhangcm
 * @version 1.0, 2017/11/28
 */
@ApiModel(description = "销售订单过滤参数")
public class AppOrderSearchParam {

    @ApiModelProperty(value = "会员ID")
    private Long memberId;
    @ApiModelProperty(value = "状态(1: 待付款, 98: 关闭, 99: 完成)")
    private Integer state;
    @ApiModelProperty(value = "是否退款")
    private Boolean ifRefund;
    @ApiModelProperty(value = "排序字段(1.创建时间, 2.完成时间, 3.退款时间)，默认1")
    private Integer sortField = 1;
    @ApiModelProperty(value = "是否降序，默认false")
    private Boolean ifDesc = false;
    @ApiModelProperty(value = "完成时间-开始")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginFinishTime;
    @ApiModelProperty(value = "完成时间-结束")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endFinishTime;

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Boolean getIfRefund() {
        return ifRefund;
    }

    public void setIfRefund(Boolean ifRefund) {
        this.ifRefund = ifRefund;
    }

    public Integer getSortField() {
        return sortField;
    }

    public void setSortField(Integer sortField) {
        this.sortField = sortField;
    }

    public Boolean getIfDesc() {
        return ifDesc;
    }

    public void setIfDesc(Boolean ifDesc) {
        this.ifDesc = ifDesc;
    }

    public Date getBeginFinishTime() {
        return beginFinishTime;
    }

    public void setBeginFinishTime(Date beginFinishTime) {
        this.beginFinishTime = beginFinishTime;
    }

    public Date getEndFinishTime() {
        return endFinishTime;
    }

    public void setEndFinishTime(Date endFinishTime) {
        this.endFinishTime = endFinishTime;
    }
}
